Skip to content

XWIKI-22579: Livedata filter selectize input for lists does not have a label #3575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Oct 17, 2024

Jira URL

https://jira.xwiki.org/browse/XWIKI-22579

Changes

Description

  • Added a way to retrieve the aria-label of the input to complete the selectize control-input

Clarifications

  • Very similar needs happened for the title attribute for XWIKI-16147. This solution uses the same implementation.

Screenshots & Video

Here, we look at the liveData from the menu application, which caused a lot of fails in test suites:
Before the changes proposed in this PR:
Screenshot from 2024-10-17 13-34-53
We can see that the LD List filter control-input does not have any text alternative.
After the changes proposed in this PR:
Screenshot from 2024-10-17 13-43-18
We can see that the text alternative is retrieve from the augmented input.
Additionally, a Axe core analysis of the page above returned 0 violations of WCAG (after the PR was applied).

Executed Tests

First, I built the changes locally with mvn clean install -f xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war -Pquality. Then I started a test suite where some of those Livedata List filters prompted errors on the CI. Namely, mvn clean install -f xwiki-platform-core/xwiki-platform-release/xwiki-platform-release-test/xwiki-platform-release-test-docker/ -Pdocker -Dxwiki.test.ui.wcag=true. The wcagWarning file generated from these tests still reported the errors from https://jira.xwiki.org/browse/XWIKI-22580, but none from XWIKI-22579.

I did not test all the other modules where the errors at the origin of this ticket happened, but from this limited testing I can assess that this PR does not create new WCAG issues and passes quality tests.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • 15.10.x
    • 16.4.x

…a label

* Added a way to retrieve the aria-label of the input to complete the control-input
…src/main/webapp/resources/uicomponents/suggest/xwiki.selectize.js
@mflorea mflorea merged commit b2360a6 into xwiki:master Dec 9, 2024
1 check passed
github-actions bot pushed a commit that referenced this pull request Dec 9, 2024
…a label (#3575)

* Added a way to retrieve the aria-label of the input to complete the control-input

(cherry picked from commit b2360a6)
michitux pushed a commit that referenced this pull request Dec 16, 2024
…a label (#3575)

* Added a way to retrieve the aria-label of the input to complete the control-input

(cherry picked from commit b2360a6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants